<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: sauver_rubrique.php,v $ 
 * $Date: 2005/08/31 10:13:46 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
require_once(get_path_module('sql.export'));
$query = " WHERE id='$page' LIMIT 1";
$query = get_table_content_fast("html_rubrique", $query);
$query = ereg_replace (" VALUES \([[:digit:]]+,", " VALUES (\$page,",$query);
$script = "\$query=\"DELETE FROM html_rubrique WHERE id='\$page'\";\n";
$script.= "rportalrequete(\$query) or rportalerreur(\"La creation de la rubrique ID=\$page a echoue.\",\"?op=\");\n";
$script.= "rportalrequete(\"".$query."\") or rportalerreur(\"La creation de la rubrique ID=\$page a echoue.\",\"?op=\");\n";
$script.= "rportalrequete(\"UPDATE html_rubrique SET id_repertoire='\$repertoire' WHERE id='\$page'\") or rportalerreur(\"Le repertoire de la rubrique n'a pas pu etre mis a jour.\",\"?op=\");";
?>